package com.ifly.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {
    //点登录按钮，跳转登录页面
    @GetMapping("/index")
    public String toIndex(){
        return "ems/login";
    }
    //点注册注册按钮，，跳转注册页面
    @GetMapping("/toRegist")
    public String toRegist(){
        return "ems/regist";
    }
    //点添加员工按钮，，跳转添加员工页面
    @GetMapping("/toAdd")
    public String toAdd(){
        return "ems/addEmp";
    }
}
